﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PessMvc.Models
{
    public class ResetPasswordModel
    {
        [Required]
        public string UserName { get; set; }
        [Required]
        public string Answer { get; set; }
        [Required]
        [EmailAddress(ErrorMessage="Invalid email address")]
        public string Email { get; set; }
    }

    public class EmailModel
    {
        [Required]
        [EmailAddress(ErrorMessage = "Invalid email address")]
        public string Email { get; set; }
    }
}